package com.sf.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 集货团成员信息Example类
 * @author 604625
 * 
 */
public class CollectMemberExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public CollectMemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cId is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cId is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cId =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cId <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cId >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cId >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cId <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cId <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cId in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cId not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cId between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cId not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openid is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openid is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openid =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openid <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openid >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openid >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openid <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openid <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openid like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openid not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openid in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openid not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openid between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openid not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andCreateEmpIsNull() {
            addCriterion("create_emp is null");
            return (Criteria) this;
        }

        public Criteria andCreateEmpIsNotNull() {
            addCriterion("create_emp is not null");
            return (Criteria) this;
        }

        public Criteria andCreateEmpEqualTo(String value) {
            addCriterion("create_emp =", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpNotEqualTo(String value) {
            addCriterion("create_emp <>", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpGreaterThan(String value) {
            addCriterion("create_emp >", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpGreaterThanOrEqualTo(String value) {
            addCriterion("create_emp >=", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpLessThan(String value) {
            addCriterion("create_emp <", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpLessThanOrEqualTo(String value) {
            addCriterion("create_emp <=", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpLike(String value) {
            addCriterion("create_emp like", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpNotLike(String value) {
            addCriterion("create_emp not like", value, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpIn(List<String> values) {
            addCriterion("create_emp in", values, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpNotIn(List<String> values) {
            addCriterion("create_emp not in", values, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpBetween(String value1, String value2) {
            addCriterion("create_emp between", value1, value2, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateEmpNotBetween(String value1, String value2) {
            addCriterion("create_emp not between", value1, value2, "createEmp");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUserdef1IsNull() {
            addCriterion("userdef1 is null");
            return (Criteria) this;
        }

        public Criteria andUserdef1IsNotNull() {
            addCriterion("userdef1 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdef1EqualTo(String value) {
            addCriterion("userdef1 =", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1NotEqualTo(String value) {
            addCriterion("userdef1 <>", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1GreaterThan(String value) {
            addCriterion("userdef1 >", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1GreaterThanOrEqualTo(String value) {
            addCriterion("userdef1 >=", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1LessThan(String value) {
            addCriterion("userdef1 <", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1LessThanOrEqualTo(String value) {
            addCriterion("userdef1 <=", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1Like(String value) {
            addCriterion("userdef1 like", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1NotLike(String value) {
            addCriterion("userdef1 not like", value, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1In(List<String> values) {
            addCriterion("userdef1 in", values, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1NotIn(List<String> values) {
            addCriterion("userdef1 not in", values, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1Between(String value1, String value2) {
            addCriterion("userdef1 between", value1, value2, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef1NotBetween(String value1, String value2) {
            addCriterion("userdef1 not between", value1, value2, "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef2IsNull() {
            addCriterion("userdef2 is null");
            return (Criteria) this;
        }

        public Criteria andUserdef2IsNotNull() {
            addCriterion("userdef2 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdef2EqualTo(String value) {
            addCriterion("userdef2 =", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2NotEqualTo(String value) {
            addCriterion("userdef2 <>", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2GreaterThan(String value) {
            addCriterion("userdef2 >", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2GreaterThanOrEqualTo(String value) {
            addCriterion("userdef2 >=", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2LessThan(String value) {
            addCriterion("userdef2 <", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2LessThanOrEqualTo(String value) {
            addCriterion("userdef2 <=", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2Like(String value) {
            addCriterion("userdef2 like", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2NotLike(String value) {
            addCriterion("userdef2 not like", value, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2In(List<String> values) {
            addCriterion("userdef2 in", values, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2NotIn(List<String> values) {
            addCriterion("userdef2 not in", values, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2Between(String value1, String value2) {
            addCriterion("userdef2 between", value1, value2, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef2NotBetween(String value1, String value2) {
            addCriterion("userdef2 not between", value1, value2, "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef3IsNull() {
            addCriterion("userdef3 is null");
            return (Criteria) this;
        }

        public Criteria andUserdef3IsNotNull() {
            addCriterion("userdef3 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdef3EqualTo(String value) {
            addCriterion("userdef3 =", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3NotEqualTo(String value) {
            addCriterion("userdef3 <>", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3GreaterThan(String value) {
            addCriterion("userdef3 >", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3GreaterThanOrEqualTo(String value) {
            addCriterion("userdef3 >=", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3LessThan(String value) {
            addCriterion("userdef3 <", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3LessThanOrEqualTo(String value) {
            addCriterion("userdef3 <=", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3Like(String value) {
            addCriterion("userdef3 like", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3NotLike(String value) {
            addCriterion("userdef3 not like", value, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3In(List<String> values) {
            addCriterion("userdef3 in", values, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3NotIn(List<String> values) {
            addCriterion("userdef3 not in", values, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3Between(String value1, String value2) {
            addCriterion("userdef3 between", value1, value2, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef3NotBetween(String value1, String value2) {
            addCriterion("userdef3 not between", value1, value2, "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef4IsNull() {
            addCriterion("userdef4 is null");
            return (Criteria) this;
        }

        public Criteria andUserdef4IsNotNull() {
            addCriterion("userdef4 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdef4EqualTo(String value) {
            addCriterion("userdef4 =", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4NotEqualTo(String value) {
            addCriterion("userdef4 <>", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4GreaterThan(String value) {
            addCriterion("userdef4 >", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4GreaterThanOrEqualTo(String value) {
            addCriterion("userdef4 >=", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4LessThan(String value) {
            addCriterion("userdef4 <", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4LessThanOrEqualTo(String value) {
            addCriterion("userdef4 <=", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4Like(String value) {
            addCriterion("userdef4 like", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4NotLike(String value) {
            addCriterion("userdef4 not like", value, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4In(List<String> values) {
            addCriterion("userdef4 in", values, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4NotIn(List<String> values) {
            addCriterion("userdef4 not in", values, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4Between(String value1, String value2) {
            addCriterion("userdef4 between", value1, value2, "userdef4");
            return (Criteria) this;
        }

        public Criteria andUserdef4NotBetween(String value1, String value2) {
            addCriterion("userdef4 not between", value1, value2, "userdef4");
            return (Criteria) this;
        }

        public Criteria andOpenidLikeInsensitive(String value) {
            addCriterion("upper(openid) like", value.toUpperCase(), "openid");
            return (Criteria) this;
        }

        public Criteria andCreateEmpLikeInsensitive(String value) {
            addCriterion("upper(create_emp) like", value.toUpperCase(), "createEmp");
            return (Criteria) this;
        }

        public Criteria andUserdef1LikeInsensitive(String value) {
            addCriterion("upper(userdef1) like", value.toUpperCase(), "userdef1");
            return (Criteria) this;
        }

        public Criteria andUserdef2LikeInsensitive(String value) {
            addCriterion("upper(userdef2) like", value.toUpperCase(), "userdef2");
            return (Criteria) this;
        }

        public Criteria andUserdef3LikeInsensitive(String value) {
            addCriterion("upper(userdef3) like", value.toUpperCase(), "userdef3");
            return (Criteria) this;
        }

        public Criteria andUserdef4LikeInsensitive(String value) {
            addCriterion("upper(userdef4) like", value.toUpperCase(), "userdef4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {
        private static final long serialVersionUID = 1L;

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private static final long serialVersionUID = 1L;

        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}